﻿<Window x:Class="DnDTestBed.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dd="clr-namespace:GongSolutions.Wpf.DragDrop;assembly=GongSolutions.Wpf.DragDrop"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <DataTemplate x:Key="ListBoxAdorner">
            <TextBlock Text="{Binding}"/>
        </DataTemplate>
    </Window.Resources>
    <Grid dd:DragDrop.IsDropTarget="true" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>
        
        <ListBox Grid.Row="0" Grid.Column="0" dd:DragDrop.IsDragSource="True" dd:DragDrop.DragAdornerTemplate="{StaticResource ListBoxAdorner}">
            <ListBoxItem>THIS IS THE FIRST ONE</ListBoxItem>
            <ListBoxItem>THIS IS THE SECOND ONE</ListBoxItem>
        </ListBox>
        <Canvas Grid.Row="0" Grid.Column="3" Background="LightBlue" dd:DragDrop.IsDropTarget="True"/>
    </Grid>
</Window>
